package com.yxw.yx_hotel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.io.Serializable;


/** 
 * @author liuxin
 * @create 2024-01-17 09:40:02 
 * @description 区域管理表 
 */
@Data
@TableName(value ="yx_hotel_region")
@ApiModel(value = "区域管理表" , description="yx_hotel_region")
public class YxHotelRegionEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "region_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="区域表ID")
    private Long regionId;

    @TableField(value="region_name")
    @ApiModelProperty(value="区域名称")
    private String regionName;

    @TableField(value="create_id")
    @ApiModelProperty(value="创建人ID")
    private Long createId;

    @TableField(value="create_name")
    @ApiModelProperty(value="创建人")
    private String createName;

    @TableField(value="create_time")
    @ApiModelProperty(value="创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(value="update_id")
    @ApiModelProperty(value="修改人ID")
    private Long updateId;

    @TableField(value="update_name")
    @ApiModelProperty(value="修改人名称")
    private String updateName;

    @TableField(value="update_time")
    @ApiModelProperty(value="修改时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(value="status")
    @ApiModelProperty(value="状态 0:禁用 1：启用")
    private Integer status;

    @TableField(value="tenant_id")
    @ApiModelProperty(value="租户ID(可用于数据分离)")
    private Long tenantId;

}
